home *** CD-ROM | disk | FTP | other *** search
- Path: Norway.EU.net!usenet
- From: terjepe@login.eunet.no (Terje Pedersen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: sas c++ and standard libraries
- Date: 25 Jan 1996 19:15:24 GMT
- Organization: EUnet Norway
- Message-ID: <659.6597T1321T710@login.eunet.no>
- References: <892.6593T765T2606@login.eunet.no> <913.6594T956T1110@paralax.demon.co.uk>
- NNTP-Posting-Host: pc2.sandvika-pm2-1.eunet.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- >C++ mangles all function names. So, in the file drvbase.(cxx|cpp|cc) you are
- >calling the function strncpy(char*, const char*, unsigned int).
- >If you had the C function prototype of strncpy() before this call then
- >everything would work out fine.
-
- >So, make sure, there is a
- >extern "C" strncpy(char*, const char*, unsigned int);
-
- Yes, I have received mails about:
- extern "C" {
- #include <string.h>
- }
- which solves the problem, but thanks anyway!
-
- >>It compiles fine with gcc though (and available on my homepage:
- >This I don't understand - unless you are using different header files for
- >gcc.
-
- Yes, appearently it has.
-
- >hope this helps,
-
- > Michael
-
- TP
-
-